package skyblue;

import java.util.LinkedList;

public class Method {

	private LinkedList<Variable> inputs;

	private LinkedList<Variable> outputs;

	public Method() {
		outputs = new LinkedList<Variable>();
		inputs = new LinkedList<Variable>();
	}

	public Method(Method method) {
		this.inputs = method.getInputs();
		this.outputs = method.getOutputs();
	}

	public boolean isOutput(Variable variable) {
		if (!outputs.contains(variable)) {
			return false;
		}
		return true;
	}

	public void execute() {

	}

	public void setTobeMethodType() {

	}
	public void clearTobeMethodType(){
		
	}

	public void setTobeMethodType2() {

	}

	public void clearTobeMethodType2() {

	}

	//FM �����ǵķ�����û��input???
	public boolean isInput(Variable variable) {
		if (outputs.contains(variable)) {
			return false;
		}
		return true;
	}

	public LinkedList<Variable> getOutputs() {
		return outputs;
	}

	public void setOutputs(LinkedList<Variable> outputs) {
		this.outputs = outputs;
	}

	public LinkedList<Variable> getInputs() {
		return inputs;
	}

	public void setInputs(LinkedList<Variable> inputs) {
		this.inputs = inputs;
	}
}
